package com.ita.scheduler;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.ita.service.OrderService;  

@Component(value="SpringQtzJob")
public class AutoUpdateOrderState{

	@Resource(name = "orderService")
	private OrderService oService;
	
	protected void execute()  {  
		System.out.println("Running auto");
		oService.autoUpdateState();
    } 

}
